package com.zby.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zby.admin.pojo.Products;
import com.zby.admin.pojo.dto.ProductsDto;
import com.zby.admin.pojo.vo.ProductVo;
import com.zby.utils.PageResult;
import jakarta.servlet.http.HttpServletRequest;

public interface ProductService extends IService<Products> {
    boolean addData(ProductsDto productsDto, HttpServletRequest request);
    
    PageResult<ProductVo> selectList(Integer page, Integer pageSize);
    
    boolean deleteById(Long id);
    
    boolean updateData(ProductsDto productsDto);
    
    PageResult<ProductVo> selectListByUserId(Long userId, Integer page, Integer pageSize);
}